/*企业账号管理-详情*/
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:frametrim/views/background_view.dart';

import '../../appviews/textUpPhoneView.dart';
import '../../appviews/textUpTextView.dart';
import '../../appviews/textUpTextViewJump.dart';
import '../../utility/sq_color.dart';
import '../../views/appbar_black.dart';

class CompanyAccountManageDetailsPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => CompanyAccountManageDetailsState();
}

class CompanyAccountManageDetailsState
    extends State<CompanyAccountManageDetailsPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: SQColor.color_background,
      body: Column(
        children: [
          AppbarCenterTitle(
            title: '账号详情',
            imgStr: 'image/imv_back.png',
            titleColor: SQColor.black,
            backgroundColor: Colors.white,
          ),
          Expanded(
              child: ListView(
            padding: EdgeInsets.only(top: 0),
            children: [buildTop(), buildBottom()],
          ))
        ],
      ),
    );
  }

  /*顶部-布局*/
  Widget buildTop() {
    return BackgroundView(
        mHorizontalMargin: 12,
        mVerticalBottomMargin: 10,
        mVerticalTopMargin: 10,
        widget: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text('河南竹之豫建筑工程有限公司',
                style: TextStyle(
                    fontSize: 20,
                    color: SQColor.color_3D3D3D,
                    fontWeight: FontWeight.bold)),
            SizedBox(height: 20),
            Row(
              children: [
                Text("账号状态：",
                    style:
                        TextStyle(fontSize: 14, color: SQColor.color_60black)),
                Text('启用',
                    style:
                        TextStyle(fontSize: 14, color: SQColor.color_0052D9)),
              ],
            ),
            SizedBox(height: 5),
            Row(
              children: [
                Text("申请时间：",
                    style:
                        TextStyle(fontSize: 14, color: SQColor.color_60black)),
                Text('2021-12-23 22:13:43',
                    style:
                        TextStyle(fontSize: 14, color: SQColor.color_90black)),
              ],
            ),
          ],
        ));
  }

  /*下部-布局*/
  Widget buildBottom() {
    return BackgroundView(
        mVerticalTopMargin: 0,
        mVerticalBottomMargin: 10,
        mHorizontalMargin: 12,
        mVerticalPadding: 0,
        widget: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            SizedBox(height: 10),
            TextUpTextView('单位类型', '企业'),
            TextUpTextView('统一社会信用代码', '91410100MA44Q8G70K'),
            TextUpTextViewJump('证书上传', '', '查看证书', ""),
            TextUpTextView('证书有效截止日期', '2099-12-31'),
            TextUpTextView('注册日期', '2017-12-24'),
            TextUpTextView('注册地区邮政编码', '454950'),
            TextUpTextView('注册地址', '河南自贸试验区郑州片区郑东福禄路108号商会大厦1101室'),
            TextUpTextView('办公地址', '四川省巴中市徐舍镇烟山村欢堂02030号'),
            TextUpTextView('办公邮箱', 'c8cxthokz4f@live.com'),
            TextUpTextView('办公电话', '+86-13676925059'),
            TextUpTextViewJump('法定代表人/单位负责人身份证', '', '查看身份证', ""),
            TextUpPhoneView('法定代表人/单位负责人', '王姣汝', '15981995691'),
            TextUpTextViewJump('账号管理员授权书', '', '查看授权书', ""),
            TextUpPhoneView('账号管理员', '霍建林', '15981995691'),
            TextUpTextViewJump('账号管理员身份证', '', '查看身份证', ""),
          ],
        ));
  }
}
